package com.xiannimei.service;

import com.xiannimei.model.Binding;
import com.xiannimei.model.Member;
import com.xiannimei.model.command.LoginCmd;
import com.xiannimei.model.command.RegisterCmd;
import com.xiannimei.service.oauth.OAuthProfile;
import com.xiannimei.web.MemberProfile;

public interface MemberService {
    Member getMember(String name);

		int createMember(Member member);

		Member findThirdPartyUID(String openId, Integer platFormId);

		MemberProfile localLoginMember(LoginCmd loginCmd);

		int createBinding(Binding member);

		MemberProfile register(OAuthProfile profile, Member member);

		MemberProfile registerMember(RegisterCmd registerCmd);
}
